package com.yanqu.road.entity.config.vehicle;


import com.yanqu.road.utils.string.StringUtils;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * 珍兽魂魄形状信息
 */
public class VehicleSoulShapeInfo {

	private int id = 0;
	//目前有几块砖头就是什么品质的
	private int quality = 0;        //品质

	private int num = 0;            //砖块个数

	private String info = "";       //砖块信息

	private int weight = 0;         //权重

	//10x10的大小		按照策划配置的地块的顺序
	private List<Integer> posList = new ArrayList<>();

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getQuality() {
		return quality;
	}

	public void setQuality(int quality) {
		this.quality = quality;
	}

	public int getNum() {
		return num;
	}

	public void setNum(int num) {
		this.num = num;
	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info;
		posList =  StringUtils.stringToIntegerList(info,"\\|");
		this.quality = posList.size();
		this.num = posList.size();
	}

	public int getWeight() {
		return weight;
	}

	public void setWeight(int weight) {
		this.weight = weight;
	}


	public List<Integer> getPosList() {
		return posList;
	}
}
